package com.oldroid.apps.getit.ui.adapter;

import com.jakewharton.android.viewpagerindicator.TitleProvider;

import android.support.v4.app.FragmentManager;

public class ViewPagerTitleFragmentAdapter extends ViewPagerFragmentAdapter implements TitleProvider{

	public ViewPagerTitleFragmentAdapter(FragmentManager fm) {
		super(fm);
		
	}

	public String getTitle(int position) {
		switch (position) {
		// needs to be fixed for localization
		case INDEX_STARRED:
			return "Starred";
		case INDEX_DOWNLOADS:
			return "Downloads";
		case INDEX_TAGS:
			return "Tags";
		default:
			throw new IllegalArgumentException("Unknown Position at " + position);
		}
		
	}

}
